import Mock from 'mockjs'
import roles from '@/api/sys_role.json'
import resources from '@/api/sys_resource.json'
const token = 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTYxNjE1OT' +
    'Q2MSwiaWF0IjoxNjE2MTQxNDYxfQ.4KWu-aBOJxehXfmlx7seLwKb37VEilAfxp' +
    '3FgWhJgIVoZjiUkPxPz-9SKABU6lIY8S2QPQVUAWksQm41_ROeuQ';
const userInfo = {
    userId: 12,
    username: 'admin',
    roles:roles,
    menus: resources

}
// baseURL: process.env.VUE_APP_BASE_API
Mock.mock(/\/user\/login/,'post',{
    status:200,
    msg:'请求成功',
    data:{ token: token }
})
Mock.mock(/\/user\/logout/,'post',{
    status:200,
    msg:'请求成功',
    data: null
})
Mock.mock(/\/user\/info/,'post',{
    status:200,
    msg:'请求成功',
    data:userInfo
})
